<?php
include('db.php');
$db = getDbWithoutControll();

$content=file_get_contents("../view/login.html");
$_INFO_content="";



 		$sqlCommand="UPDATE access SET logged=0";
 		$result = $db->Execute($sqlCommand);
 		
 		if ($result === false)
 			die($sqlCommand);
 		
 		
 		$_INFO_content="<b>Loged Out</b>";
 		$_INFO_content.="<br>";
 		$_INFO_content.="
 		<script type=\"text/javascript\">
 		function Redirect()
 		{
 			window.location=\"login.php\";
 		}
 		setTimeout('Redirect()', 2000);
 		</script>";
 		
 // Display page
 echo $_INFO_content;
 
?>
